//
//  ChangeView.h
//  weiGuanJia
//
//  Created by 吕飞俊 on 1.
//  Copyright (c) 年 吕飞俊. All rights reserved.
//
// －－滑动切换的视图

#import <UIKit/UIKit.h>


@protocol ChangeViewDelegate <NSObject>

- (void)viewDidEndDecelerating:(NSInteger)index viewController:(UIViewController *)vc;

@end

@interface lvfjSegmentView : UIView<UIScrollViewDelegate>

/**代理*/
@property(nonatomic,weak)id <ChangeViewDelegate>delegate;

/**
 *  获取
 *
 *  @param frame             <#frame description#>
 *  @param titleArray        <#titleArray description#>
 *  @param titleHeight       <#titleHeight description#>
 *  @param titleFont         <#titleFont description#>
 *  @param titleNormalColor  <#titleNormalColor description#>
 *  @param titleSeletedColor <#titleSeletedColor description#>
 *  @param lineColor         <#lineColor description#>
 *  @param lineHeight        <#lineHeight description#>
 *  @param ctlArray          <#ctlArray description#>
 *  @param delegate          <#delegate description#>
 *
 *  @return <#return value description#>
 */
-(instancetype)initWithFrame:(CGRect)frame
                  titleArray:(NSArray *)titleArray
                 titleHeight:(CGFloat)titleHeight
                   titleFont:(UIFont *)titleFont
            titleNormalColor:(UIColor *)titleNormalColor
           titleSeletedColor:(UIColor *)titleSeletedColor
                   lineColor:(UIColor *)lineColor
                  lineHeight:(CGFloat)lineHeight
                    ctlArray:(NSArray *)ctlArray
                    delegate:(id<ChangeViewDelegate>)delegate;

/**跳转指定页面  从0开始*/
- (void)toPage:(NSInteger)page;


@end
